<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="header"><s:set name="u" value="#session[@com.google.code.sapien.ActionConstants@USER_SESSION]"></s:set>
	<a href="#" id="logo">Sapien Discussion Board</a>
	<div id="header-nav">
		<ul>
			<li><a href="<s:url action="index" namespace="/" />"><s:text name="home"/></a></li>
			<li><a href="#"><s:text name="search"/></a></li>
			<li><a href="#"><s:text name="help"/></a></li>
			<s:if test="#u.administrator"><li><a href="<s:url action="index" namespace="/admin"/>"><s:text name="admin"/></a></li></s:if>
			<s:if test="#u == null || #u.anonymous">
				<li><a href="<s:url action="login" namespace="/" />"><s:text name="login"/></a></li>
			</s:if><s:else>
				<li><a href="<s:url action="logout" namespace="/" />"><s:text name="logout"/></a></li>
			</s:else>
		</ul>
	</div>
	<div class="clear"></div>
	<p>
		Welcome
		<s:if test="!#u.anonymous">
			<s:property value="#u.user.username" />
		</s:if><s:else>
			<s:text name="anonymous" />
		</s:else>
	</p>
	<!-- <h1>Section Header</h1> -->
</div>
